/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取任务详情 POST /task/open/info/getOpenData */
export async function taskOpenInfoGetOpenDataUsingPost({
  body,
  options,
}: {
  body: API.TaskInfoBoTaskOpenInfoGetOpenData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RTaskInfoVo>('/task/open/info/getOpenData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询任务 POST /task/open/info/pageOpenData */
export async function taskOpenInfoPageOpenDataUsingPost({
  body,
  options,
}: {
  body: API.TaskInfoBoTaskOpenInfoPageOpenData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoTaskInfoVo>('/task/open/info/pageOpenData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
